[GI] Mark mis-detected constructors as such
authorMartin Pitt <martin.pitt@ubuntu.com>
Wed, 2 Feb 2011 14:11:06 +0000 (15:11 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Wed, 2 Feb 2011 14:11:06 +0000 (15:11 +0100)
commit0e795b67c33400dcff78500a3fa0861af3ff0111
treeff84bdc3a4c0d2663a2dd625bf2f21ce9639dd67
parent3067ef4a9b9fd51441dafcf05b6e0513d709df40
[GI] Mark mis-detected constructors as such

constructors which take an object of the same class as its first argument are
mis-detected as method call with "self" argument by the GIR scanner. Using the
new (constructor) annotation from bug 561264, mark some of them as proper
constuctors, so that you can call them with NULL as first argument from
bindings; in particular, this fixes gdk_window_new() and the
gtk_radio_button_new_with*() constructors.
gdk/gdkwindow.c
gtk/gtkradiobutton.c